package com.mobile.service;

import com.mobile.pojo.OderDetailVO;
import com.mobile.pojo.ReservationDTO;

import java.text.ParseException;

/**
 * @author Encounter
 * @date 2024/10/10 12:49<br/>
 */
public interface OrderService
    {
        /**
         * 找到由id
         *
         * @param id id
         * @return {@link OderDetailVO }
         */
        OderDetailVO findById(Integer id);
        
        /**
         * 体检预约
         *
         * @param reservationDTO 预留 DTO
         * @return int 剩余可预约数
         */
        int reservation(ReservationDTO reservationDTO) throws ParseException;
    }
